<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			let Arr = new Array(1, 2, 3, 4);
			let sum = 0;
			for(let i = 0; i <= Arr.length - 1; i++)
			{
				// Arr[i] = i + 1;
				sum += Arr[i];
			}
			console.log(sum);
		</script>
	</head>
	<body>
	</body>
</html>